import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

function queryCommonDandle(query){
  query = query??{};
  //默认公共限制
  if(!query.hasOwnProperty("pageNum")){
    query.pageNum = 1;
  }
  if(!query.hasOwnProperty("pageSize")){
    query.pageSize = 999999;
  }
  return query;
}

// 查询用户列表
export function userList(query) {
  query = queryCommonDandle(query);
  return request({
    url: '/system/user/userCommonList',
    method: 'get',
    params: query
  })
}

// 查询学生列表
export function studentList(query) {
  query = queryCommonDandle(query);
  return request({
    url: '/jiaopei/student/list',
    method: 'get',
    params: query
  })
}

// 查询课程列表
export function curriculumList(query) {
  query = queryCommonDandle(query);
  return request({
    url: '/jiaopei/curriculum/list',
    method: 'get',
    params: query
  })
}


// 查询排期列表
export function schedulingList(query) {
  query = queryCommonDandle(query);
  return request({
    url: '/jiaopei/scheduling/list',
    method: 'get',
    params: query
  })
}




